
from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from Eventati import settings
from Eventati.settings import MEDIA_ROOT 
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'IntegrationProject.views.home', name='home'),
    # url(r'^IntegrationProject/', include('IntegrationProject.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^SuggestComponent/','Eventati.App.views.suggestComponent'),
    (r'^homePage/', 'Eventati.App.views.homePage'),
    (r'^activateAccount/', 'Eventati.App.views.activateAccount'),
    (r'^activate/', 'Eventati.App.views.activate'),
    (r'^signup/', 'Eventati.App.views.signup'),
    (r'^logout/', 'Eventati.App.views.logout'),
    (r'^sendInvitation/', 'Eventati.App.views.sendInvitation'),
    (r'^joinEvent/', 'Eventati.App.views.joinEvent'),
    (r'^maybeAttend/', 'Eventati.App.views.maybeAttend'),
    (r'^notAttend/', 'Eventati.App.views.notAttend'),
    (r'^invite/', 'Eventati.App.views.invite'),
    (r'^login/', 'Eventati.App.views.logIn'),
	(r'^change/', 'App.views.change'),
    (r'^passwordreset/', 'App.views.resetPassword'),
    (r'^eventEdit/(?P<eventId>\d+)/$', 'Eventati.App.views.editEvent'),
	(r'^viewEventAfterLaunch/','Eventati.App.views.viewEventAfterLaunch'),


#Search Engine URLS
    (r'^searchEngine/','Eventati.App.views.searchEngine'),
    (r'^ResultsEvents/(\d+)/$','Eventati.App.views.goToPage'),
	url(r'^autoCompleteSearch/$', 'App.views.autoCompleteSearch', name='autoCompleteSearch'),

    (r'^EventPage/(\d+)/share/$', 'Eventati.App.views.shareEvent'),
    (r'^EventPage/(\d+)/like/(\d+)/$', 'Eventati.App.views.likeEvent'),
    (r'^ResultsEvents/(\d+)/share/$', 'Eventati.App.views.shareEvent'),
    (r'^ResultsEvents/(\d+)/like/(\d+)/$', 'Eventati.App.views.likeEvent'),


	(r'^AboutUs/', 'App.views.viewAboutUs'),
	(r'^Faqs/', 'App.views.viewFaqs'),
    (r'^Contactus/', 'App.views.viewContactUs'),
    (r'^Terms&Conditions/','App.views.viewTerms'),
    (r'^News/','App.views.viewNews'),  
    (r'^ViewInstructions/', 'App.views.viewInstructions'),
                       
    (r'^DashboardHome/','Eventati.App.views.showDashboard'),
    (r'^CreatedEvents/','Eventati.App.views.showAllCreatedEvents'),
    (r'^searchInCreated/','Eventati.App.views.searchInCreated'),
    (r'^searchInAttending/','Eventati.App.views.searchInAttending'),
    (r'^searchInInvited/','Eventati.App.views.searchInInvited'),
    (r'^searchInModerated/','Eventati.App.views.searchInModerated'),
    (r'^AttendingEvents/','Eventati.App.views.showAllAttendingEvents'),
    (r'^InvitedEvents/','Eventati.App.views.showAllInvitedEvents'),
    (r'^ModeratedEvents/','Eventati.App.views.showModeratedEvents'),
	(r'^BookmarkedEvents/', 'Eventati.App.views.showBookmarkedEvents'),
    (r'^EventPage/(\d+)/$','Eventati.App.views.showTempEvent'),
                        
                       
                       
    ('^viewTemplates/', 'Eventati.App.views.viewTemplates'),
    (r'^location/','Eventati.App.views.submitComponents'),
    (r'^payment/','Eventati.App.views.viewPayment'),
	(r'^assignPayment/', 'Eventati.App.views.assignPayment'),
    (r'^media/','Eventati.App.views.viewMedia'),
	(r'^uploadVideo/', 'Eventati.App.views.uploadVideo'),
    (r'^viewVideos/', 'Eventati.App.views.viewVideos'), 
    (r'^videos/(?P<path>.*)$', 'django.views.static.serve',
		{'document_root': settings.MEDIA_ROOT}),
	(r'^uploadMoreVideos/','App.views.uploadMoreVideos'),
    (r'^agenda/','Eventati.App.views.viewAgenda'),
	(r'^social/', 'Eventati.App.views.setSocialMarekting'),
    (r'^CurrentCredit/', 'Eventati.App.views.viewCurrentCredit'),
    (r'^socialmarketing/','Eventati.App.views.viewSocialMarketing'),
    (r'^livestream/','Eventati.App.views.viewLiveStream'),
    (r'^success/','Eventati.App.views.viewSuccess'),
     
     
    (r'^components/','App.views.addEventComponents'),
	(r'^viewEditLocation/','Eventati.App.views.viewEditLocation'),
	(r'^EditLocation/','App.views.editLocation'),
	(r'^locationss/create$' , 'Eventati.App.views.createLocation' ),  
	(r'^viewEditPayment/','App.views.viewEditPayment'),
	(r'^EditPayment/','App.views.editPayment'),
	(r'^viewEditSocialMarketing/','App.views.viewEditSocialMarketing'),
	(r'^EditSocialMarketing/','App.views.editSocialMarketing'),
	(r'^viewEditLiveStream/','App.views.viewEditLiveStream'),
	(r'^EditLiveStream/','App.views.editLiveStream'),
	(r'^viewEditAgenda/','Eventati.App.views.viewEditAgenda'),
    (r'^social/', 'Eventati.App.views.setSocialMarekting'),
    (r'^CurrentCredit/', 'Eventati.App.views.viewCurrentCredit'),
	(r'^CreateMenu/', 'App.views.createMenus'),
	(r'^addCMS/', 'App.views.addCMS'),
    (r'^CreatePage/', 'App.views.addCMS'),
	(r'^ViewCMSPage/(\d+)/$','App.views.showPages'),
    (r'^EventsTest/', 'App.views.checkEvents'),
    (r'^showPages/', 'App.views.showPages'),
    #url(r'^Menus/(\d+)/$','App.views.showMenus'),
    (r'^showMenus/', 'App.views.showMenus'),
    (r'^Menus/','App.views.addLink'),
    (r'^viewMenus/(\d+)/$','App.views.showMenus'),
    (r'^deleteCMS/','App.views.deleteCMS'),
    (r'^deleteMenu/','App.views.deleteMenu'),
    (r'^editCMS/','App.views.editCMS'),
    (r'^editMenu/','App.views.editMenu'),
    (r'^EventsPage/', 'Eventati.App.views.viewPage'),
	
	(r'^Start/','App.views.startPayment'),
	(r'^addpaid/','App.views.addPayedAttendees'),
	(r'^TODO/' , 'Eventati.App.views.createList') ,
	(r'^AddTask/', 'Eventati.App.views.addTask') ,
	(r'^DeleteTask/', 'Eventati.App.views.deleteTask') ,
	(r'^CompleteTask/', 'Eventati.App.views.completeTask'),
	(r'^assignTask/', 'Eventati.App.views.assignTask') ,
	(r'^createAnAgenda/', 'Eventati.App.views.createAnAgenda'),
	(r'^createActivity/', 'Eventati.App.views.createActivity'),
	(r'^deleteActivity/', 'Eventati.App.views.deleteActivity') ,
	(r'^editActivity/', 'Eventati.App.views.editActivity'),
	(r'^addEventActivity/', 'Eventati.App.views.addEventActivity'),
	(r'^deleteEventActivity/', 'Eventati.App.views.deleteEventActivity'),
	(r'^editEventActivity/', 'Eventati.App.views.editEventActivity'),
	(r'^addChannel/', 'Eventati.App.views.addChannel'),
	(r'^removedLocation/','App.views.removeLocation'),
    (r'^removedPayment/','App.views.removePayment'),
    (r'^removedMedia/','App.views.removeMedia'),
    (r'^removedAgenda/','App.views.removeAgenda'),
    (r'^removedSocialMarketing/','App.views.removeSocialMarketing'),
    (r'^removedLiveStream/','App.views.removeLiveStream'),
    (r'^chartAttendee/(\d+)/$', 'App.views.measureAttendee'),
    (r'^chartLike/(\d+)/$', 'App.views.measureLike'),
	(r'^ViewComponent/(?P<componentId>\d+)/', 'App.views.viewComponent'), 
	(r'^addUnchosenComponents/','Eventati.App.views.addUnchosenComponents'),
	(r'^ASSIGN/', 'App.views.viewModerator'),
    (r'^moderator/', 'App.views.assignModerator'),   
	(r'^uploadPhoto/', 'Eventati.App.views.uploadPhoto') ,
    (r'^viewPhotos/', 'Eventati.App.views.viewPhotos'),
    (r'^photos/(?P<path>.*)$', 'django.views.static.serve',
                 {'document_root': settings.MEDIA_ROOT}),
	(r'^uploadMorePhotos/','App.views.uploadMorePhotos'),
		
                 
    (r'^allAttend/','Eventati.App.views.viewAllAttending' ),
    (r'^allMaybe/', 'Eventati.App.views.viewAllMaybe'),
    (r'^allNotAttending/', 'Eventati.App.views.viewAllNotAttending'),
    (r'^allPayedAttendees/','Eventati.App.views.viewAllPayed'),
       
    (r'^eventPage/', 'Eventati.App.views.goToEvent'),
	(r'^viewEditBasicInformation/','Eventati.App.views.viewEditBasicInformation'),
    (r'^viewChannel/','App.views.viewChannel'),
    (r'^EditBasicInformation/','App.views.editBasicInformation'),
(r'^approve/', 'Eventati.App.views.approve'),
       (r'^reject/', 'Eventati.App.views.reject'),
       (r'^deleteEvent/', 'Eventati.App.views.deleteEvent'),
       (r'^systemModerator/', 'Eventati.App.views.systemModerator'),
       (r'^bookmark/', 'Eventati.App.views.bookmark'),
       (r'^addBookmark/', 'Eventati.App.views.addBookmark'),
       (r'^listOfBookmarks/', 'Eventati.App.views.listOfBookmarks'),
       (r'^deleteBookmark/','Eventati.App.views.deleteBookmark'),
       (r'^pendingEvent/','Eventati.App.views.pendingEvent'),
	       (r'^editRefreshAgenda/','Eventati.App.views.editRefreshAgenda'),





	)

